package com.elective.courseselect.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.elective.courseselect.entity.CourseListVo;
import com.elective.courseselect.entity.StudentEntity;
import com.elective.courseselect.utils.PageUtils;
import com.elective.courseselect.utils.R;

import java.util.Map;


/**
 * 
 *
 * @author lee
 * @email 943204006@qq.ccom
 * @date 2021-09-04 15:25:39
 */
public interface StudentService extends IService<StudentEntity> {

    PageUtils queryPage(Map<String, Object> params,StudentEntity studentEntity);

    Boolean judgeStuChooseCourseByCourseId(Integer userId, Integer courseId);

    R fightCourse(Integer userId, Integer courseId);

    CourseListVo searchChooseCourseRes(Integer userId);


    R cancelChooseCourse(Integer courseId, Integer userId);

    JSONObject searchChooseCourseResTypeByCourseId(Integer userId);
}

